package cn.sxt.questions.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import cn.sxt.common.util.PageInfoUtil;
import cn.sxt.questions.pojo.Answer;
import cn.sxt.questions.pojo.Columns;
import cn.sxt.questions.pojo.Items;
import cn.sxt.questions.pojo.Question;

public interface IQuestionService {
	/* findOne*/
	Columns findOneColumnsService(Map<String,Object> condMap);
	/*save*/
	JSONObject saveService(Columns columns);
	/*update*/
	JSONObject updateService(Columns columns);
	/*delete*/
	JSONObject deleteService(Columns columns);
	/*查询全部*/
	List<Columns> findListColumnsService(Map<String,Object> condMap,PageInfoUtil pageInfoUtil);
	
	/* findOne*/
	Items findOneItemsService(Map<String,Object> condMap);
	/*save*/
	JSONObject saveService(Items items);
	/*update*/
	JSONObject updateService(Items items);
	/*delete*/
	JSONObject deleteService(Items items);
	/*查询全部*/
	List<Items> findListItemsService(Map<String,Object> condMap,PageInfoUtil pageInfoUtil);
	
	
	/* findOne*/
	Question findOneQuestionService(Map<String,Object> condMap);
	/*save*/
	JSONObject saveService(Question question);
	/*update*/
	JSONObject updateService(Question question);
	/*delete*/
	JSONObject deleteService(Question question);
	/*查询全部*/
	List<Question> findListQuestionService(Map<String,Object> condMap,PageInfoUtil pageInfoUtil);
	
	
	
	/* findOne*/
	Answer findOneAnswerService(Map<String,Object> condMap);
	/*save*/
	JSONObject saveService(Answer answer);
	/*update*/
	JSONObject updateService(Answer answer);
	/*delete*/
	JSONObject deleteService(Answer answer);
	/*查询全部*/
	List<Answer> findListAnswerService(Map<String,Object> condMap,PageInfoUtil pageInfoUtil);

}
